package com.example.ribbon;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.client.RestTemplate;

@org.springframework.web.bind.annotation.RestController
public class RestController {
    @Autowired
    private RestTemplate restTemplate;

    @RequestMapping("/test")
    public String hello() {
        return restTemplate.getForObject("http://EUREKA-CLIENT/test", String.class);
    }

}
